import { http } from "@/utils/request.js";
import api from "@/config/api.js";

/**
 * 账号密码登陆
 * @params  code
 * @params  phone
 */
export function policeLogin(params, clientType) {
	return http.request({
		method: "POST",
		url: `/api/login/police`,
		data: params,
	})
}

/**
 * 发送验证码
 * @param  mobile 
 */
export function sendMobile(data) {
	return http.request({
		url: `${api.common}/api/common/sms`,
		method: "POST",
		data:data
	});
}

/**
 * 个人信息
 * @param  
 */
export function driverSearch(params) {
	return http.request({
		url: `/api/police/driverSearch`,
		method: "GET",
		params,
	});
}

